import request from "@/utils/request";

// 返工列表
export function getRepairList(query) {
  return request({
    url: "/mes/pro/dcRework/list",
    method: "get",
    params: query,
  });
}

// 返工详情
export function getRepairDetail(id) {
  return request({
    url: "/mes/pro/dcRework/info/" + id,
    method: "get",
  });
}

// 返工新增
export function addRepair(data) {
  return request({
    url: "/mes/pro/dcRework/add",
    method: "post",
    data: data,
  });
}

// 返工修改
export function updateRepair(data) {
  return request({
    url: "/mes/pro/dcRework/edit",
    method: "put",
    data: data,
  });
}

// 返工删除
export function deleteRepair(ids) {
  return request({
    url: "/mes/pro/dcRework/del/" + ids,
    method: "delete",
  });
}
